<?php
namespace Common\ShopModels;

use Common\BaseModel;

class BShopMessageSysmess extends BaseModel
{
    public $res;
    public $expire;

    public function getSource()
    {
        return "b_shop_message_sysmess";
    }


    public function find_one_system1($params){
        $datetime = date('Y-m-d');
        $condtions="sys_id='system2' AND sys_type=1 AND shop_id={$params['shop_id']} and extends='{$params['order_sn']}' and send_message_id={$params['user_id']} and created_at like '{$datetime}%'";
        $result = $this->findFirst(array(
            $condtions
        ));
        return $result;
    }


}
